package com.project.ATM;

public class Account {
    private String cardno;

    private String password;

    private int money;

    private boolean status = true;

    public Account(String cardno, String password, int money) {
        this.cardno = cardno;
        this.password = password;
        this.money = money;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Account{" +
                "cardno='" + cardno + '\'' +
                ", password='" + password + '\'' +
                ", money=" + money +
                ", status=" + status +
                '}';
    }


}
